package com.arron.ssm.dao;

import com.arron.ssm.entity.Employee;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    int insertSelective(Employee record);

    Employee selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(@Param("emp") Employee record,@Param("id") Long id,@Param("version") Integer version);



    List<Employee> selectList();
}